package com.stylefeng.guns.modular.netcar.service;

import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.core.model.CommonKeyValue;
import com.stylefeng.guns.core.model.Pager;
import com.stylefeng.guns.modular.netcar.model.TaskReleaseReason;

import java.util.List;
import java.util.Map;
/**
  * 驾驶员拒绝任务或释放任务原因字典 Service接口
  * @author sasazaixian
  * @Date 2018-10-23 11:04 
 */
public interface ITaskReleaseReasonService extends IService<TaskReleaseReason> {

    /**
     * 删除驾驶员拒绝任务或释放任务原因字典
     * @param taskReleaseReason
     * @return     
     */
    int deleteTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token)throws Exception;
    /**
     * 批量删除驾驶员拒绝任务或释放任务原因字典
     * @param ids 主键ID数组
     * @return     
     */
    int deleteBatchTaskReleaseReason(String[] ids,String token)throws Exception;
    /**
     * 查询驾驶员拒绝任务或释放任务原因字典列表
     * @param taskReleaseReason 驾驶员拒绝任务或释放任务原因字典对象
     * @return     
     */
    List<TaskReleaseReason> selectListTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token)throws Exception;

	/**
     * 分页查询驾驶员拒绝任务或释放任务原因字典列表
     * @param pager 分页对象
     * @return     
     */
    Map pageListTaskReleaseReason(Pager pager,String token) throws Exception;

    /**
     * 同一个事务 互斥锁查询
     * @param taskReleaseReason 驾驶员拒绝任务或释放任务原因字典对象
     * @return     
     */
    List<TaskReleaseReason> selectListTaskReleaseReasonForUpdate(TaskReleaseReason taskReleaseReason)throws Exception;
    /**
     * 通过主键id查询的驾驶员拒绝任务或释放任务原因字典列表
     * @param id 主键id
     * @return     
     */
    TaskReleaseReason findTaskReleaseReasonById(String id,String token)throws Exception;

    /**
     * 新增驾驶员拒绝任务或释放任务原因字典数据
     * @param taskReleaseReason  驾驶员拒绝任务或释放任务原因字典对象
     * @return
     */
    int insertTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token) throws Exception ;
    /**
     * 更新驾驶员拒绝任务或释放任务原因字典数据
     * @param taskReleaseReason 驾驶员拒绝任务或释放任务原因字典对象
     * @return     
     */
    int updateTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token) throws Exception ;    

    /**
     * 查询驾驶员拒绝任务或释放任务原因字典返回key-Value属性
     * @param taskReleaseReason 系统操作对象
     * @return     
     */
    List<CommonKeyValue> optionsTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token)throws Exception;
}
